from sanic import response

from mysql_.Orm_DB import *
# from my_jinja2.my_jinja2 import template
from view.register import bp1


@bp1.route('/reset', methods=['GET', 'POST'])
async def reset_pw(request):

    username = request.form.get('username')
    password = request.form.get('password')

    db_update(username, password=password)

    return response.text('reset')

